package com.dixunzh.dianlailai.core.Controllers;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import net.sf.json.JSONObject;

/**
 * 	前台首页数据
 * @author xmiao
 *
 */
@RestController
@RequestMapping("/api/index")
public class IndexController {

	/**
	 * 	查询数据
	 * @return
	 */
	@GetMapping("/datalist")
	public JSONObject dataList() {
		JSONObject res = new JSONObject();
		return res;
	}
	/**
	 * 	加添数据
	 * @return
	 */
	@PostMapping("/dataadd")
	public JSONObject dataAdd() {
		JSONObject res = new JSONObject();
		return res;
	}
	/**
	 * 	修改数据
	 * @return
	 */
	@PostMapping("/dataupdate")
	public JSONObject dataUpdate() {
		JSONObject res = new JSONObject();
		return res;
	}
	/**
	 * 	删除数据
	 * @return
	 */
	@GetMapping("datadelete")
	public JSONObject dataDelete() {
		JSONObject res = new JSONObject();
		return res;
	}
}
